package com.ruizhong.centercontroll.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruizhong.centercontroll.entity.TPrebuildComponent;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.xml.bind.JAXBException;
import java.util.List;
import java.util.Map;

public interface TPrebuildComponentService extends IService<TPrebuildComponent> {
    List<Object> getPrebuildComponentByType(Integer type);

    void savaAsFormat(Map<String,Object> tPrebuildComponent);

    void deleteComponentFormat(Integer id);

    ResponseEntity<InputStreamResource> exportComponentTemplate(Map<String, Object> tPrebuildComponentMap) throws JAXBException;

    void ImportComponentTemplate(MultipartFile file);
}
